﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program11
{
    /// <summary>
    /// 定义员工类，加标识表示可以序列化
    /// </summary>
    [Serializable]
   public class Person
    {
        //唯一标识
        public Guid ID { get;}
        //学号
        public string EmployeeNo { get; set; }
        //姓名
        public string Name { get; set; }
        //性别
        public bool Sex { get; set; }
        //生日
        public DateTime Birthday { get; set; }
        public Person()
        {
            ID = Guid.NewGuid();
        }
    }
}
